
// 邮箱验证
export function isEmail (email) {
  if (email.search(/^([a-zA-Z0-9]+[_|_|.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|_|.]?)*[a-zA-Z0-9]+\.(?:com|cn)$/) !== -1) {
    return true
  } else {
    return false
  }
}
// 验证电话号码
export function fucCheckTelPhone (telphone) {
  // eslint-disable-next-line no-useless-escape
  if (telphone.search(/^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/) !== -1) {
    return true
  } else {
    return false
  }
}
// 验证手机号码
export function fucCheckTEL (tel) {
  if (tel.search(/^1(3|4|5|6|7|8|9)\d{9}$/) !== -1) {
    return true
  } else {
    return false
  }
}
// 验证QQ
export function isQQ (qq) {
  if (qq.search(/^[1-9]\d{4,8}$/) !== -1) {
    return true
  } else {
    return false
  }
}
